using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class DefaultValueType
    {

        private GTame.ReportParser.DataSetReferenceType _DataSetReference;
        private GTame.ReportParser.ValuesType _Values;

        public GTame.ReportParser.DataSetReferenceType DataSetReference
        {
            get
            {
                if (_DataSetReference == null)
                    _DataSetReference = new GTame.ReportParser.DataSetReferenceType();
                return _DataSetReference;
            }
            set
            {
                _DataSetReference = value;
            }
        }

        public GTame.ReportParser.ValuesType Values
        {
            get
            {
                if (_Values == null)
                    _Values = new GTame.ReportParser.ValuesType();
                return _Values;
            }
            set
            {
                _Values = value;
            }
        }

        public DefaultValueType()
        {
        }

        public Rdl.DefaultValueType Write()
        {
            Rdl.DefaultValueType defaultValueType = new Rdl.DefaultValueType();
            System.Collections.ArrayList arrayList = new System.Collections.ArrayList();
            if (_DataSetReference != null)
                arrayList.Add(_DataSetReference.Write());
            if (_Values != null)
                arrayList.Add(_Values.Write());
            defaultValueType.Items = arrayList.ToArray();
            arrayList = null;
            return defaultValueType;
        }

    } // class DefaultValueType

}

